import request from '@/utils/request'

// 查询设备停复机记录列表
export function listShutdown(query) {
  return request({
    url: '/mes/dv/shutdown/list',
    method: 'get',
    params: query
  })
}

// 查询设备停复机记录详细
export function getShutdown(recordId) {
  return request({
    url: '/mes/dv/shutdown/' + recordId,
    method: 'get'
  })
}

// 新增设备停复机记录
export function addShutdown(data) {
  return request({
    url: '/mes/dv/shutdown',
    method: 'post',
    data: data
  })
}

// 修改设备停复机记录
export function updateShutdown(data) {
  return request({
    url: '/mes/dv/shutdown',
    method: 'put',
    data: data
  })
}

// 删除设备停复机记录
export function delShutdown(recordId) {
  return request({
    url: '/mes/dv/shutdown/' + recordId,
    method: 'delete'
  })
}
